package com.uyayo.cms.service;

import com.uyayo.cms.entity.CmsChannel;
import com.uyayo.cms.model.CmsChannelCondition;
import com.uyayo.framework.pagehelper.pojo.PageBean;

import java.util.List;

public interface CmsChannelService {


	CmsChannel getChannelById(Long id) throws Exception;

	List<CmsChannel> selectChannel(CmsChannelCondition cmsChannelCondition);

	PageBean<CmsChannel> selectChannelByPaging(Integer page, Integer rows, String sort, String order, CmsChannelCondition cmsChannelCondition);

	int createCmsChannel(CmsChannel cmsChannel) throws Exception;

	CmsChannel selectOne(CmsChannel cmsChannel);

	int updateChannel(CmsChannel cmsChannel) throws Exception;

	int deleteChannel(Long id);

}
